<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>作业2</title>
	<script>
		   var sum=0;
           var count=0;
		   for(var i=1;i<=3;i++){
		   	for(var k=1;k<=4;k++){
                var score=Number(prompt('请输入第'+i+'班第'+k+'个同学成绩'));
                if (score<=85) {
                	continue;
                }else{
                	sum+=score;
                    count+=1;
                }
		      }
		      console.log('这是'+i+'班的分数>85分以上同学的平均成绩'+sum/count);
		      count=0;
		      sum=0;
		   }

	</script>
</head>
<body>
	
</body>
</html>